//工具模块

//导出
module.exports = {
    sleep
} 

//睡眠函数，单位毫秒
//setTimeout转Promise
function sleep(ms) {
    return new Promise((resolve, reject) => {
        setTimeout(resolve, ms)
    })
}

